<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\BannerSign;
use Illuminate\Support\Carbon;

class BannerSignSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $now = Carbon::now();
        $rows = [
            [
                'sign'        => 'home',
                'description' => '首页',
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
            [
                'sign'        => 'user',
                'description' => '个人中心',
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
        ];

        BannerSign::insert($rows);
        print("插入完成 \n");
    }
}
